// 全局样式变量
@primary-color: #4e54c8;
@secondary-color: #8f94fb;
@layout-header-background: linear-gradient(135deg, #1a1e35 0%, #2d3250 100%);
@layout-body-background: #f8f9fa;
@border-radius-base: 8px;
@box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
@transition-base: all 0.3s ease-in-out;

.layout {
  min-height: 100vh;
  background: @layout-body-background;
  overflow-x: hidden;
}

.header {
  display: flex;
  align-items: center;
  padding: 0 50px;
  background: @layout-header-background;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: @transition-base;

  .logo-container {
    display: flex;
    align-items: center;
    margin-right: 30px;
    
    .logo-avatar {
      margin-right: 10px;
      background: linear-gradient(135deg, @primary-color, @secondary-color);
    }
    
    .logo {
      color: white;
      font-size: 20px;
      font-weight: bold;
      background: linear-gradient(to right, #ffffff, #e0e0e0);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
  }

  .ant-menu {
    background: transparent;
    border-bottom: none;
    flex: 1;
    
    .ant-menu-item {
      &::after {
        border-bottom: 2px solid @secondary-color !important;
      }
      
      &:hover {
        color: @secondary-color !important;
      }
      
      &.ant-menu-item-selected {
        color: @secondary-color !important;
      }
    }
  }

  .join-button {
    margin-left: auto;
    background: linear-gradient(135deg, @primary-color, @secondary-color);
    border: none;
    transition: @transition-base;
    
    &:hover {
      transform: translateY(-2px);
      box-shadow: 0 5px 15px rgba(78, 84, 200, 0.4);
    }
  }
}

.content {
  padding: 0 50px;
  margin: 24px 0;

  .content-container {
    background: #fff;
    padding: 32px;
    min-height: 280px;
    margin-top: 16px;
    border-radius: @border-radius-base;
    box-shadow: @box-shadow;
    transition: @transition-base;
    
    &:hover {
      box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    }
  }
}

.footer {
  background: @layout-header-background;
  color: rgba(255, 255, 255, 0.8);
  padding: 24px 50px;
  
  .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    
    .footer-links {
      display: flex;
      margin-bottom: 16px;
      
      a {
        color: rgba(255, 255, 255, 0.8);
        margin: 0 15px;
        transition: @transition-base;
        
        &:hover {
          color: @secondary-color;
        }
      }
    }
    
    .footer-copyright {
      margin-bottom: 16px;
    }
    
    .footer-social {
      display: flex;
      
      .social-icon {
        color: rgba(255, 255, 255, 0.8);
        margin: 0 10px;
        transition: @transition-base;
        
        &:hover {
          color: @secondary-color;
          transform: translateY(-3px);
        }
      }
    }
  }
}

// 响应式设计
@media (max-width: 768px) {
  .header {
    padding: 0 20px;
    
    .logo-container {
      .logo {
        font-size: 16px;
      }
    }
  }
  
  .content {
    padding: 0 20px;
  }
  
  .footer {
    padding: 20px;
  }
}